import { basePrefix } from "@/config";
import request from "../axios";
export const getList = (params) =>
    request({
        url: basePrefix + "/category/list",
        method: "get",
        params: params
    });

export const getObj = (id) =>
    request({
        url: basePrefix + "/category/detail",
        method: "get",
        params: {
            id
        }
    });

export const addObj = (data) =>
    request({
        url: basePrefix + "/category/save",
        method: "post",
        data: data
    });
export const updateObj = (data) =>
    request({
        url: basePrefix + "/category/update",
        method: "post",
        data: data
    });

export const delObj = (id) =>
    request({
        url: basePrefix + "/category/remove",
        method: "post",
        params: {
            ids: id
        }
    });
